Skip to content

ParallelAnimationGroup

Sub classes

Name Children Inherits
ZoomAnimation
prettyqt.animations.zoomanimation

    Base classes

    Name Children Inherits
    AnimationGroupMixin
    prettyqt.core.animationgroup
    QParallelAnimationGroup
    PySide6.QtCore
    QParallelAnimationGroup(self, /, parent: PySide6.QtCore.QObject | None \= None) -> None

    ⋔ Inheritance diagram

    graph TD
      952010150["core.ParallelAnimationGroup"]
      3440267878["core.AnimationGroupMixin"]
      565069530["core.AbstractAnimationMixin"]
      3227531497["core.ObjectMixin"]
      2751680898["builtins.object"]
      844356195["QtCore.QParallelAnimationGroup"]
      1733551884["QtCore.QAnimationGroup"]
      2133980439["QtCore.QAbstractAnimation"]
      3984060476["QtCore.QObject"]
      37984305["Shiboken.Object"]
      3440267878 --> 952010150
      565069530 --> 3440267878
      3227531497 --> 565069530
      2751680898 --> 3227531497
      2751680898 --> 565069530
      2751680898 --> 3440267878
      844356195 --> 952010150
      1733551884 --> 844356195
      2133980439 --> 1733551884
      3984060476 --> 2133980439
      37984305 --> 3984060476
      2751680898 --> 37984305

    🛈 DocStrings

    Bases: AnimationGroupMixin, QParallelAnimationGroup

    Parallel group of animations.

    Source code in prettyqt/core/parallelanimationgroup.py
    class ParallelAnimationGroup(core.AnimationGroupMixin, core.QParallelAnimationGroup):
        """Parallel group of animations."""
    
        def set_duration(self, duration: int):
            for anim in self:
                match anim:
                    # I dont think we need to support nested Animations here..
                    case core.QVariantAnimation():
                        anim.setDuration(duration)
                    case _:
                        msg = "set_duration only works with QVariantAnimations."
                        raise TypeError(msg)
    

    :fa-brands-github: Show source on GitHub